//
//  UIViewController+appinn.swift
//  appinn
//
//  Created by 范东 on 2022/5/26.
//

import UIKit
import SafariServices

extension UIViewController{
    func gotoSafari(url: String){
        let config = SFSafariViewController.Configuration()
        config.entersReaderIfAvailable = true
        let sf = SFSafariViewController(url: URL(string: url)!, configuration: config)
        present(sf, animated: true, completion: nil)
    }
}
